import { http } from '@/utils'

const Account = 'account/'

export function register(data = { username, password }) {
  return http.post(Account + 'register', data)
}

export function login(data = { username, password, keep: 0 }) {
  return http.post(Account + 'login', data)
}

export function logout() {
  return http.get(Account + 'logout')
}

export function isLogin() {
  return http.get(Account + 'isLogin')
}